<div class="widget-box">
<div class="widget-title">
    <span class="icon"><i class="icon-pencil"></i></span>
    <h5>Clientes</h5>
</div>
<div class="widget-content">
<?php
//atributos form datos
$atrFrm = array('class' => 'form-horizontal', 'id' => 'frm_config_gral');
$atrInpIdClie = array('type' => 'hidden','name' =>'id_clie','value' => $id_clie,);
$atrInpName = array('class' => 'input-xxlarge','type' => 'text','name' =>'nomb_clie','value' => $clie_data->nomb_clie,);
$atrInpApe = array('class' => 'input-xxlarge','type' => 'text','name' =>'apel_clie','value' => $clie_data->apel_clie,);
$atrInpDni = array('class' => 'input-xxlarge','type' => 'text','name' =>'dni_clie','value' => $clie_data->dni_clie,);
$atrInpTel = array('class' => 'input-xxlarge','type' => 'text','name' =>'telf_clie','value' => $clie_data->telf_clie,);
$atrInpEmail = array('class' => 'input-xxlarge','type' => 'text','name' =>'email_clie','value' => $clie_data->email_clie,);
$atrInpCuit = array('class' => 'input-xxlarge','type' => 'text','name' =>'cuit_clie','value' => $clie_data->cuit_clie,);
$atrInpDire = array('class' => 'input-xxlarge','type' => 'text','name' =>'dire_clie','value' => $clie_data->dire_clie,);

 if(($clie_data->estado_clie) > 0 ){$checked = TRUE;}else{$checked = FALSE;}
$atr_chkEstado = array('name' => 'estado_clie','checked' => $checked ,'value' => '1');

$atributos = array( 'class' => 'control-label');
$atrBtn = array('class' => 'btn btn-inverse','type' => 'submit');
//formulario de datos
echo form_open('clientes/update_clie',$atrFrm);
echo form_input($atrInpIdClie);
?>

<?php echo form_fieldset('Editar datos del cliente'); ?>
<p class="muted"><?php echo 'Fecha de ingreso: '.$clie_data->fecha_ingreso.' | '.'Código: '.$clie_data->codigo_clie.' | '.'Tipo cliente: '.$clie_data->desc_tclie; ?></p>
<p class="muted">Datos Personales</p>
    <div class="control-group">
          <?php echo form_label('Nombre','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpName); ?>
            <?php echo form_error('nomb_clie'); ?>
        </div>
    </div>
    <div class="control-group">
          <?php echo form_label('Apellido','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpApe); ?>
            <?php echo form_error('apel_clie'); ?>
        </div>
    </div>
    <div class="control-group">
          <?php echo form_label('Número Dni/CI/LC','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpDni); ?>
            <?php echo form_error('dni_clie'); ?>
        </div>
    </div>
    <div class="control-group">
          <?php echo form_label('Teléfono','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpTel); ?>
            <?php echo form_error('telf_clie'); ?>
        </div>
    </div>
    <div class="control-group">
          <?php echo form_label('Email','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpEmail); ?>
            <?php echo form_error('email_clie'); ?>
        </div>
    </div>
    <div class="control-group">
          <?php echo form_label('Cuit / Cuil','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpCuit); ?>
        </div>
    </div>
<p class="muted">Datos de Ubicación</p>
    <div class="control-group">
          <?php echo form_label('Dirección','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpDire); ?>
            <?php echo form_error('dire_clie'); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Pais','',$atributos);?>
        <div class="controls">
            <select class="" name="pais" id="pais">
                <option value="0" selected>Seleccionar pais...</option>
                  <?php foreach($pais as $fila){ ?>
                  <option value="<?php echo $fila->id_pais ?>"> <?php echo $fila->nomb_pais ?></option>
                  <?php }?>        
            </select>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Provincia','',$atributos);?>
        <div class="controls">
            <select class="" name="provincia" id="provincia">
                <option value=""></option>
            </select>
            <?php echo form_error('provincia'); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Localidad','',$atributos);?>
        <div class="controls">
            <select class="" name="localidad" id="localidad">
                <option value=""></option>
            </select>
            <?php echo form_error('localidad'); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Zona','',$atributos);?>
        <div class="controls">
            <select class="" name="id_zona" id="zona">
                <option value=""></option>
            </select>
            <?php echo form_error('id_zona'); ?>
        </div>
    </div>
<p class="muted">Estado del cliente</p>
<div class="control-group">
        <label class="checkbox">
            <?php echo form_label('Activo?','',$atributos);?>
            <div class="controls">
            <div class="switch switch-small" data-on="success" data-off="warning" data-on-label="SI" data-off-label="NO">
               <?php echo form_checkbox($atr_chkEstado); ?>
            </div>
            </div>
        </label>
    </div>
<?php
echo form_button($atrBtn,'Guardar Cambios');
echo form_fieldset_close(); 
echo form_close();
?>
</div>
</div>